﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CommonTagTime.ModelObject
{
    public class Banner
    {
        //------------------------------------------------
        //VARIABLE
        //------------------------------------------------
        private int _TotalRecords;
        private int _CurrentPage;
        private int _PageSize;
        private string _OrderBy;
        private string _OrderDirection;
        private string _Condition;

        private int _Id;
        private string _BannerName;
        private string _FilePath;
        private string _Url;
        private DateTime _StartingDate;
        private DateTime _EndingDate;
        private byte _Effect;
        private int _SortOrder;
        private bool _IsActive;
        private string _CreatedBy;
        private DateTime _CreatedDate;
        private string _UpdatedBy;
        private DateTime _UpdatedDate;

        //------------------------------------------------
        //PROPERTY
        //------------------------------------------------
        public int Id
        {
            get { return _Id; }
            set { _Id = value; }
        }
        public string BannerName
        {
            get { return _BannerName; }
            set { _BannerName = value; }
        }
        public string FilePath
        {
            get { return _FilePath; }
            set { _FilePath = value; }
        }
        public string Url
        {
            get { return _Url; }
            set { _Url = value; }
        }
        public DateTime StartingDate
        {
            get { return _StartingDate; }
            set { _StartingDate = value; }
        }
        public DateTime EndingDate
        {
            get { return _EndingDate; }
            set { _EndingDate = value; }
        }
        public byte Effect
        {
            get { return _Effect; }
            set { _Effect = value; }
        }
        public Boolean IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }
        public int SortOrder
        {
            get { return _SortOrder; }
            set { _SortOrder = value; }
        }

        public int TotalRecords
        {
            get { return _TotalRecords; }
            set { _TotalRecords = value; }
        }

        public string OrderBy
        {
            get { return _OrderBy; }
            set { _OrderBy = value; }
        }

        public string OrderDirection
        {
            get { return _OrderDirection; }
            set { _OrderDirection = value; }
        }

        public int CurrentPage
        {
            get { return _CurrentPage; }
            set { _CurrentPage = value; }
        }

        public int PageSize
        {
            get { return _PageSize; }
            set { _PageSize = value; }
        }
        public string Condition
        {
            get { return _Condition; }
            set { _Condition = value; }
        }
        public string CreatedBy
        {
            get { return _CreatedBy; }
            set { _CreatedBy = value; }
        }
        public DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }
        public string UpdatedBy
        {
            get { return _UpdatedBy; }
            set { _UpdatedBy = value; }
        }
        public DateTime UpdatedDate
        {
            get { return _UpdatedDate; }
            set { _UpdatedDate = value; }
        }
        public Banner()
        {
            _CurrentPage = 0;
            _PageSize = 0;
            _TotalRecords = 0;
            _SortOrder = int.MinValue;
            _IsActive = false;
            _BannerName = string.Empty;
            _CreatedBy = string.Empty;
            _CreatedDate = DateTime.Now;
            _Effect = byte.MinValue;
            _EndingDate = DateTime.Now;
            _FilePath = string.Empty;
            _Id = int.MinValue;
            _StartingDate = DateTime.Now;
            _Url = string.Empty;
        }
    }
    public class BannerCollection : List<Banner>
    { }
}



